BizKitHub
DokumentacePrůzkumník APIPayment/api/v1/shop/payment/create
getPaymentVeřejné API v1

/api/v1/shop/payment/create

Initializes a payment gateway session for the given order and returns a redirect URL where the customer completes the payment.

paymentgetApiV1ShopPaymentCreate

Parametry

2 v query

Parametry v query

· 2
apiKeystringPovinné

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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
hashstringPovinné

Unique order hash identifier.

Příklada1b2c3d4e5f6

Schéma odpovědi

1 zdokumentovaný stavový kód

200ÚspěchPayment gateway redirect URL.
gatewayUrlstringVolitelné

URL to redirect the customer to the payment gateway. Undefined if payment could not be created.

Příkladhttps://payments.comgate.cz/client/instructions/index?id=ABC123

Ukázka odpovědi

application/json
{
  "gatewayUrl": "https://payments.comgate.cz/client/instructions/index?id=ABC123"
}

Ukázka požadavku

GET /api/v1/shop/payment/create

get
curl -X GET "https://api.bizkithub.com/api/v1/shop/payment/create?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&hash=a1b2c3d4e5f6" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč