API referenceAcquirers
Update an acquirer
PATCH
Changes the fields you send and leaves the rest unchanged.
The body is a JSON merge patch (RFC 7396): null clears a field
that can be empty. address, contact and billing are replaced
whole. external_ref can be changed, and null clears it. Requests
that still send the old value no longer find this acquirer. A key
limited to one acquirer cannot change it: sending a different value
returns 403.
integrationKeyheader
AuthorizationBearer <token>Your integration key, sent as Authorization: Bearer nik_<prefix>_<secret>.
Narya issues it.
id*stringFormat
uuid- body
Properties
1 <= propertiesexternal_ref?|nullname?stringLength
1 <= length <= 255status?stringValue in
"active""inactive"business_reg_no?|Length
1 <= length <= 12tax_id_no?|Length
1 <= length <= 64sst_no?|Length
1 <= length <= 64contact?|nulladdress?|nullbilling?|nullThe updated acquirer
application/json- response
id*stringFormat
uuidexternal_ref?|nullname*stringstatus*stringValue in
"active""inactive"business_reg_no?string|nulltax_id_no?string|nullsst_no?string|nullcontact?|nulladdress?|nullbilling?|nullcreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timedeleted_at*|When the record was deleted, or null. Lists return deleted records only with include_deleted=true.
Format
date-timeExample Request
curl -X PATCH 'https://api-narya-staging.pmadvisors.my/integration/v1/acquirers/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "external_ref": "ACQ-MBB", "name": "string", "status": "active", "business_reg_no": "string", "tax_id_no": "string", "sst_no": "string", "contact": { "person": "string", "phone": "string", "email": "user@example.com" }, "address": { "line1": "string", "line2": "string", "city": "string", "postcode": "string", "state": "MY-01", "country": "MY" }, "billing": { "name": "string", "address": { "line1": "string", "line2": "string", "city": "string", "postcode": "string", "state": "MY-01", "country": "MY" } }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z"}