Skip to main content
Check from your server that a buyer has paid. Paid when status is complete.
GET

Authorization

Use your secret key, from your server.
string
required
Bearer followed by your secret key. A public key returns Secret key required.

Path Parameters

string
required
The session id. It’s also the session_id on your successUrl.

Response

Returned with status 200.
Note:
  • status: open (waiting), complete (paid) or expired (not paid within 30 minutes).
  • order is null until the buyer pays. amountTotal includes delivery.
  • Landing on successUrl doesn’t prove payment. Always check status here.

Error Responses

Returned with status 403 when you used your public key. Call this endpoint from your server with your secret key.
Returned with status 404 when there’s no checkout session with this id in the store.
Returned with status 500 when something went wrong on Baag’s side. Retry.
Key errors (401, 403, 429) are on API keys.