BizKitHub
DokumentationAPI-ExplorerOrder/api/v1/shop/order/record-in-app-payment
postOrderÖffentliche API v1

/api/v1/shop/order/record-in-app-payment

Records a payment the shop collected through App Store or Google Play (payment kind in_app). Call it from your server after verifying the purchase with the store; never from a client app. When the recorded payments cover the order price, the order is marked as paid with the standard workflow (e-mails, reservations, lock codes).

orderpostApiV1ShopOrderRecord-in-app-payment

Parameter

1 in der Query · JSON-Body

Query-Parameter

· 1
apiKeystringPflicht

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

BeispielPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Request-Body

application/json
orderIdstringPflicht

Order hash.

Länge: 32
BeispielsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
identityIdstringOptional

Customer identity (/customer/login). When set, the order must belong to this customer.

store"app_store" | "google_play"Pflicht

Store that collected the money.

Beispielapp_store
transactionIdstringPflicht

Store transaction id (App Store transactionId, Google Play orderId). Unique: a retry with the same id returns the first result, the same id on another order is refused with 409.

Länge: 1–64
Beispiele2000000812345678GPA.3312-4580-1234-56789
pricenumberPflicht

Amount in the order currency.

Beispiel290
notestringOptional

Free text stored with the payment row.

Länge: 0–500

Antwortschema

1 dokumentierter Statuscode

200Erfolg
success"true"Pflicht
paymentIdstringPflicht
Beispiel184233
alreadyRecordedbooleanPflicht

True when this transaction id was already recorded on the order.

triggeredMarkAsPaidbooleanPflicht

True when this call marked the order as paid.

totalReceivedAfternumberPflicht
Beispiel290
orderPricenumberPflicht
Beispiel290

Antwortbeispiel

application/json
{
  "success": true,
  "paymentId": "184233",
  "alreadyRecorded": false,
  "triggeredMarkAsPaid": false,
  "totalReceivedAfter": 290,
  "orderPrice": 290
}

Anfragebeispiel

POST /api/v1/shop/order/record-in-app-payment

post
curl -X POST "https://api.bizkithub.com/api/v1/shop/order/record-in-app-payment?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "orderId": "sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S",
  "identityId": "example_identityId",
  "store": "app_store",
  "transactionId": "2000000812345678",
  "price": 290,
  "note": "example_note"
}'

Sie brauchen einen API-Schlüssel?

Alle öffentlichen Endpunkte der BizKitHub-API authentifizieren per API-Schlüssel.

API-Schlüssel erhalten