Stores
Manage the merchant's stores: create, read, update, and delete.
Create store
https://api.gobtcpay.com/public/api/v1.2/merchant/store/createCreates a new store for the authenticated merchant. Accepts a required name and optional address, country, and timezone. Returns the created store, including its id, merchantId, status, and posCount.
Authorization: merchantAuth
Body required
application/jsonnamestringrequiredSatoshi Coffeeaddressstringbc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdqcountrystringstringlatnumber1718012345lngnumber0timezonestringstringResponses
idstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6resultobjectrequiredcurl -X POST "$BASE_URL/merchant/store/create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"name": "Satoshi Coffee",
"address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
"country": "string",
"lat": 1718012345,
"lng": 0,
"timezone": "string"
}'{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"result": {
"$case": "success",
"success": {
"store": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"merchantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Satoshi Coffee",
"address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
"country": "string",
"lat": 1718012345,
"lng": 0,
"timezone": "string",
"status": "active",
"posCount": 0,
"createdAt": 1718012345,
"updatedAt": 1718012345
}
}
}
}Get store
https://api.gobtcpay.com/public/api/v1.2/merchant/store/getFetches a single store by storeId. Returns the store object with name, address, country, timezone, status, posCount, and timestamps.
Authorization: merchantAuth
Body required
application/jsonstoreIdstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6Responses
idstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6resultobjectrequiredcurl -X POST "$BASE_URL/merchant/store/get" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"storeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"result": {
"$case": "success",
"success": {
"store": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"merchantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Satoshi Coffee",
"address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
"country": "string",
"lat": 1718012345,
"lng": 0,
"timezone": "string",
"status": "active",
"posCount": 0,
"createdAt": 1718012345,
"updatedAt": 1718012345
}
}
}
}List stores
https://api.gobtcpay.com/public/api/v1.2/merchant/store/listLists the merchant's stores with optional pagination (limit, skip) and filters (status, free-text query). Returns items (array of stores) and totalCount.
Authorization: merchantAuth
Body required
application/jsonpaginationobjectfiltersobjectResponses
idstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6resultobjectrequiredcurl -X POST "$BASE_URL/merchant/store/list" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"pagination": {
"limit": 20,
"skip": 0
},
"filters": {
"status": "active",
"query": "string"
}
}'{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"result": {
"$case": "success",
"success": {
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"merchantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Satoshi Coffee",
"address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
"country": "string",
"lat": 1718012345,
"lng": 0,
"timezone": "string",
"status": "active",
"posCount": 0,
"createdAt": 1718012345,
"updatedAt": 1718012345
}
],
"totalCount": 0
}
}
}Update store
https://api.gobtcpay.com/public/api/v1.2/merchant/store/updateUpdates the store identified by storeId. Optionally changes name, address, country, timezone, and status (active or disabled; deleted is reserved for the delete endpoint). Returns the updated store.
Authorization: merchantAuth
Body required
application/jsonstoreIdstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6namestringSatoshi Coffeeaddressstringbc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdqcountrystringstringlatnumber1718012345lngnumber0timezonestringstringstatusenumCurrent status. Payments: initiated / detected / paid / failed / expired / canceled / cleared. Payment transactions: success / failed / pending / cleared.
activedisableddeletedactiveResponses
idstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6resultobjectrequiredcurl -X POST "$BASE_URL/merchant/store/update" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"storeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Satoshi Coffee",
"address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
"country": "string",
"lat": 1718012345,
"lng": 0,
"timezone": "string",
"status": "active"
}'{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"result": {
"$case": "success",
"success": {
"store": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"merchantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Satoshi Coffee",
"address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
"country": "string",
"lat": 1718012345,
"lng": 0,
"timezone": "string",
"status": "active",
"posCount": 0,
"createdAt": 1718012345,
"updatedAt": 1718012345
}
}
}
}Delete store
https://api.gobtcpay.com/public/api/v1.2/merchant/store/deleteSoft-deletes the store identified by storeId, setting its status to deleted. Returns { ok }.
Authorization: merchantAuth
Body required
application/jsonstoreIdstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6Responses
idstringrequired3fa85f64-5717-4562-b3fc-2c963f66afa6resultobjectrequiredcurl -X POST "$BASE_URL/merchant/store/delete" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"storeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"result": {
"$case": "success",
"success": {
"ok": true
}
}
}