GET
Authorization
All you need is your API key in theAuthorization header.
string
required
Bearer, a space, then your API key. You can find it in Baag App → Settings → Developers.Response
When everything goes well, you get back status200 with your store’s information:
urlis your store’s link. It’s your own domain when you connected one on the Pro plan, otherwisehttps://<your-store>.baag.cc.logo, and any contact or social value, isnullwhen you haven’t added it in Baag App yet.policyisnulluntil you set your policies in Baag App. These are the same rules checkout uses, so what you show matches what the buyer gets.delivery.typeisSAME_DAY,NEXT_DAYorCUSTOM_DAYS. WithCUSTOM_DAYS,dayslists the days you deliver.refunds.timeframeandreturns.timeframeare how long a buyer has:HOURS_24,HOURS_48,DAYS_7orDAYS_14. Refunds can also beDAYS_30.returns.kindisEXCHANGEwhen you swap the item, orRETURNwhen you take it back.- Prices, like
delivery.priceandreturns.fee, are whole RWF.
Error Responses
Missing API key
Missing API key
Returned with status
401 when the request has no Authorization header. Add your key as Authorization: Bearer pk_live_xxxxxxxxx.Invalid API key
Invalid API key
Returned with status
401 when the key is wrong, or it was regenerated in Baag App. Copy your key again from Settings → Developers.Plan required
Plan required
Returned with status
403 when your store’s plan doesn’t include the API. Your key works again as soon as your store is on the Basic or Pro plan.Rate limited
Rate limited
Returned with status
429 when your key sent too many requests in a short time. Wait a moment, then try again.Internal error
Internal error
Returned with status
500 when something went wrong on Baag’s side. It’s not your fault. Wait a moment, then try again.