Ziwako Docs
ZiwakoRéférence APIPartnerships

Create Partnership

POST
/partnerships

Authorization

X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/partnerships" \  -H "Content-Type: application/json" \  -d '{    "owner": "string"  }'
{  "type": "string",  "code": "string",  "status": 0,  "message": "string",  "data": {    "id": "string",    "owner": "string",    "partner": "string",    "status": "active",    "defaultRate": 0,    "scope": "all",    "productRates": [      {        "product": "string",        "rate": 0      }    ],    "since": "2019-08-24T14:15:22Z",    "until": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}