Skip to main content
POST
/
b2b
/
place-order
/
doPayment
Confirm payment and proceed with order delivery
curl --request POST \
  --url https://api2.wizzgift.com/b2b/place-order/doPayment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "checkoutId": "CHK-123456",
  "callback_url": "https://merchant.example.com/wizzgift/order-callback",
  "meta_data": {
    "user_id": "12345",
    "internal_order_id": "ORD-98765",
    "source": "wizzgift_api"
  }
}
'
{
"success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
checkoutId
string
required

Checkout identifier returned from /b2b/place-order.

Example:

"CHK-123456"

callback_url
string<uri>
required

Public URL to receive order completion callbacks.

Example:

"https://merchant.example.com/wizzgift/order-callback"

meta_data
object
required

Arbitrary JSON object that will be returned unchanged in the callback.

Response

Payment request accepted.

success
boolean
required

Indicates if the payment was accepted successfully.

Example:

true