cURL
curl --request PATCH \ --url https://commerce.driv.ly/api/preapprovals/{id} \ --header 'Content-Type: application/json' \ --data ' { "id": "<string>", "consumer": "<string>", "validUntilTime": "2023-11-07T05:31:56Z", "creditBand": "<string>" } '
{ "data": { "id": "<string>", "validUntilTime": "2023-11-07T05:31:56Z", "creditBand": "<string>", "consumer": "<string>" }, "success": true }
Pre-Approval is uniquely identified by id
The number of levels of related objects to include in the response
Consumer has Pre-Approval
Pre-Approval is Valid Until Time
Pre-Approval falls in Credit Band
Pre-Approval Updated
Show child attributes
{ "id": "pre_59dk394fjdl3", "consumer": "Consumer ID", "creditBand": "crb_39fjkd93nmd0", "validUntilTime": "2024-04-12T00:00:00Z"}