/v2/api/entity base and authenticated with a Bearer token.data envelope) and embeds its related branch object and treasury (null when no treasury is linked). The fields site_id, category, and credentials are not returned.1) is the data level — how deeply related records are loaded — not meaningful here, so /site_payment_gateway/{ID} and /site_payment_gateway/{ID}/1 return the same result.Requesting an id that does not exist currently returns HTTP 500with the plain-text bodyerror happened(not a404).
curl --location --globoff 'https://.daftara.com/v2/api/entity/site_payment_gateway//1' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'{
"id": 0,
"payment_gateway": "string",
"label": "string",
"username": "string",
"option1": "string",
"option2": "string",
"option3": "string",
"default": 0,
"active": 0,
"manually_added": 0,
"disable_for_client": 0,
"created": "string",
"modified": "string",
"settings": "string",
"treasury_id": 0,
"branch_id": 0,
"branch": {
"id": 0,
"name": "string",
"status": 0,
"created": "string",
"modified": "string",
"code": "string"
},
"treasury": {}
}