Edit a credit card
This endpoint allows you to update credit card information. Only the parameters provided will be updated.
Endpoint
POST https://canadamotorjobs.com/api/v1/{locale}/credit-cards/edit
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
api_token | string | Your API key | required or bearer token |
id | string | The credit card identifier | Required if no ref_id and ref_source |
ref_id | string | The credit card identifier in your system | No |
ref_source | string | The credit card identifier source | No |
description | string | The new description | No |
Response
Returns the request status and the updated credit card information.
Errors
| Code | Message |
|---|---|
| 401 | Unauthorized |
| 404 | Not Found |
| 422 | Unprocessable Entity (e.g., invalid parameters) |
| 500 | Internal Server Error |