PATCH
/
preapprovals
/
{id}
curl --request PATCH \
  --url https://commerce.driv.ly/api/preapprovals/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "pre_59dk394fjdl3",
  "consumer": "Consumer ID",
  "creditBand": "crb_39fjkd93nmd0",
  "validUntilTime": "2024-04-12T00:00:00Z"
}'
{
  "data": {
    "id": "pre_59dk394fjdl3",
    "consumer": "Consumer ID",
    "creditBand": "crb_39fjkd93nmd0",
    "validUntilTime": "2024-04-12T00:00:00Z"
  },
  "success": true
}

Path Parameters

id
string
required

Pre-Approval is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
id
string

Pre-Approval is uniquely identified by id

consumer

Consumer has Pre-Approval

validUntilTime
string

Pre-Approval is Valid Until Time

creditBand

Pre-Approval falls in Credit Band

Response

200
application/json

Pre-Approval Updated

data
object
Examples:
{
"id": "pre_59dk394fjdl3",
"consumer": "Consumer ID",
"creditBand": "crb_39fjkd93nmd0",
"validUntilTime": "2024-04-12T00:00:00Z"
}
success
boolean