Orders

Attaching assets to orders

For this you will need to have the asset id(s) and the order id. You can find assets via another api.


Attach

Use the order id and send a POST request with the asset id to

https://app.digital-downloads.com/api/v1/orders/:id/attach

Example

https://app.digital-downloads.com/api/v1/orders/82664d96-6dfd-4343-aaaa-05c46f412a5b/attach

Request

{
    "assets": [
        "82664d96-6dfd-4343-96b0-05c46f412a5b", 
        "82664d96-6dfd-4343-96b0-05c46f412a5x"
    ]
}

Response

You will receive a 201 response code.


Removing attached assets

Use the order id you wish to remove and send a POST request to with the asset id to

https://app.digital-downloads.com/api/v1/orders/:id/detach

Example

https://app.digital-downloads.com/api/v1/orders/82664d96-6dfd-4343-aaaa-05c46f412a5b/detach

Request

{
    "assets": [
        "82664d96-6dfd-4343-96b0-05c46f412a5x"
    ]
}

Response

You will receive a 201 response code.

Previous
Sending download email