Delete Address
Remove an address that is linked to a customer or is not linked to any object.
/v1/addresses/:address
Delete Address
curl -X delete 'https://sandboxapi.rapyd.net/v1/addresses/address_12c6d08d0f2bb4c2e9195969bfe2439b' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "fa39dda8-372b-469f-aa2c-5583079f8720" }, "data": {} }
Bad Request - Address Cannot Be Deleted
curl -X delete 'https://sandboxapi.rapyd.net/v1/addresses/address_12c6d08d0f2bb4c2e9195969bfe2439b' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "ERROR_DELETE_ADDRESS", "status": "ERROR", "message": "The request tried to delete the address, but this operation failed. The request was rejected. Corrective action: None. Only an address that is linked to a customer or not linked to any object can be deleted.", "response_code": "ERROR_DELETE_ADDRESS", "operation_id": "05f6a6c2-b61f-4132-926c-8fec593d6e49" } }
Unauthorized
curl -X delete 'https://sandboxapi.rapyd.net/v1/addresses/address_12c6d08d0f2bb4c2e9195969bfe2439b' \ -H 'access_key: your-access-key-here' \ -H 'Content-Type: application/json' \ -H 'salt: your-random-string-here' \ -H 'signature: your-calculated-signature-here' \ -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "UNAUTHENTICATED_API_CALL", "status": "ERROR", "message": "The request was rejected due to an authentication issue. Corrective action: Check the status of your account in the 'Account Details' page of the Client Portal.", "response_code": "UNAUTHENTICATED_API_CALL", "operation_id": "1583a613-17b9-4eea-bfeb-895e156d3b0b" } }