Last updated 7 months ago
Success
const response = await fetch('/api/app/subscription/{id}/usage', { method: 'GET', headers: {}, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "subscriptionItemId": "123e4567-e89b-12d3-a456-426614174000", "subscriptionItemName": "text", "usedAt": "2024-11-27T19:27:07.193Z", "recordedAt": "2024-11-27T19:27:07.193Z", "endedAt": "2024-11-27T19:27:07.193Z", "endRecordedAt": "2024-11-27T19:27:07.193Z", "externalReference": "text", "quantity": 0, "comments": "text" }
const response = await fetch('/api/app/subscription/{id}/usage', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "error": { "code": "text", "message": "text", "details": "text", "validationErrors": [ { "message": "text", "members": [ "text" ] } ] } }
const response = await fetch('/api/app/subscription/usage', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();