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 status200.
status:open(waiting),complete(paid) orexpired(not paid within 30 minutes).orderisnulluntil the buyer pays.amountTotalincludes delivery.- Landing on
successUrldoesn’t prove payment. Always checkstatushere.
Error Responses
Secret key required
Secret key required
Returned with status
403 when you used your public key. Call this endpoint from your server with your secret key.Session not found
Session not found
Returned with status
404 when there’s no checkout session with this id in the store.Internal error
Internal error
Returned with status
500 when something went wrong on Baag’s side. Retry.401, 403, 429) are on API keys.