Skip to content

Reactivate a purchase

POST
/purchases/{id}/reactivate
curl --request POST \
--url https://api.getdpd.com/v2/purchases/1/reactivate \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data buyer_email=hello@example.com \
--data refulfill=true

Does the same as reactivating a purchase in the DPD admin: emails the customer their purchase again. Only works on active purchases.

id
required
integer
Media typeapplication/x-www-form-urlencoded
object
buyer_email

Send to this address instead, and change the purchase’s email address to it. Leave it off to use the address on the purchase.

string format: email
refulfill

Also send the purchase to its fulfillment service again.

boolean

Example generated

buyer_email=hello%40example.com&refulfill=true

The purchase was reactivated.

Media typeapplication/json
object
status
string
Allowed value: OK

Example

{
"status": "OK"
}

The username or API password is wrong.

Nothing found: the record doesn’t exist or isn’t yours, the list is empty, or the page is past the last one.

Media typeapplication/json
object
status
string
Allowed value: NOTFOUND

Example

{
"status": "NOTFOUND"
}

The purchase isn’t active, or buyer_email isn’t a valid address.

Media typeapplication/json
object
errors
object
key
additional properties
string

Example

{
"errors": {
"status": "Purchase is not active"
}
}