Skip to content

Commit

Permalink
Add documentation about api/v1/offers/{id}/update_status (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
pic committed Jun 1, 2020
1 parent a904743 commit b8de742
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sections/offers.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,19 @@ Mandatory fields are marked with a star (\*):
- **footer** (footer text)
- **discount** – 10 (discount in percent)
- **contact_id** – 123456 (ID of the associated contact)

## PUT /offers/{id}/update_status

Update an offer status:

```bash
curl -X PUT \
'https://{domain}.mocoapp.com/api/v1/offers/{id}/update_status' \
-H 'authorization: Token token=YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"status": "billed"
}'
```

The following states are valid: "created", "sent", "accepted", "partially_billed", "billed", "archived".

0 comments on commit b8de742

Please sign in to comment.