BizKitHub
DokumentacjaEksplorator APIPayment/api/v1/shop/payment/create
getPaymentPubliczne 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 w query

Parametry query

· 2
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
hashstringWymagane

Unique order hash identifier.

Przykłada1b2c3d4e5f6

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesPayment gateway redirect URL.
gatewayUrlstringOpcjonalne

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

Przykładhttps://payments.comgate.cz/client/instructions/index?id=ABC123

Przykład odpowiedzi

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

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API