When an end user purchases a print via a partner's website, the partner must purchase the print-quality version of the user's artwork from Canva. In response to this purchase, Canva immediately provides a URL to download the print-quality artwork.
Request
Method
POST
Endpoint
https://api.canva.com/_tpi/partnership/<partner_id>/artworks/<artwork_id>
bash
Headers
Path parameters
Body
Example
{"purchaseConfirmation": {"order": "OR_12345672","item": "IT_12345672-003","sku": "PS034509","quantity": 5,"currency": "USD","grossAmount": 65.5,"discountAmount": 6.55,"netAmount": 58.95}}
json
Response
200 - Success
The response when the purchase is successful.
Example
{"id": "123456","productionFiles": ["https://...", "https://...", "https://..."]}
json
401 - Unauthorized
The response when Canva doesn't recognize the supplied credentials.
Example
const axios = require("axios");(async () => {const response = await axios.request({baseURL: "https://api.canva.com",url: `/_tpi/partnership/<partner_id>/artworks/<artwork_id>`,method: "post",headers: {Authorization: "<artwork_api_secret>",},data: {purchaseConfirmation: {order: "OR_12345672",item: "IT_12345672-003",sku: "PS034509",quantity: 5,currency: "USD",grossAmount: 65.5,discountAmount: 6.55,netAmount: 58.95,},},});console.log(response.data);})();
javascript