Upload a document for a subscription
POST/subscriptions/:code/documents
Uploads a file document for a subscription with a document type (offer, contract, cancellation, others). The file must be a PDF; its content is validated, not just its name.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 429
- 500
Document uploaded successfully
Response Headers
Location
URL of the created resource
Bad request - invalid subscription code, document type, or file
Unauthorized - no authenticated user
Forbidden - no access to this subscription
Subscription not found
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Retry-After
Delay in seconds a client must wait before retrying the request
Internal server error