POST
/
purchase_proposals
/
{purchase_proposal_id}
/
update_status
curl --request POST \
  --url https://api.togai.com/purchase_proposals/{purchase_proposal_id}/update_status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "APPROVE"
}'
{
  "id": "purchase.20rvWRxQcQK.0ZwPG",
  "accountId": "account2394",
  "pricePlanId": "pp.20rqb4MK9ia.TD0eG",
  "createdAt": "2023-07-26T12:36:56.58015Z",
  "type": "ASSOCIATION",
  "status": "PROPOSAL_ACTIVE",
  "paymentMode": "PREPAID",
  "associationOverride": {
    "pricingCycleConfig": {
      "interval": "MONTHLY",
      "startOffset": {
        "dayOffset": "2",
        "monthOffset": "NIL"
      },
      "gracePeriod": 3,
      "anniversaryCycle": false
    }
  },
  "updatedAt": "2023-07-26T12:36:56.58015Z",
  "effectiveFrom": "2023-06-30",
  "effectiveUntil": "2023-08-30",
  "comment": "Proposal Approved"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

purchase_proposal_id
string
required
Maximum length: 512
Example:

"purchase.20rqjgFJf2O.ejl25"

Body

application/json

Payload to approve or decline a proposal

Approve or decline a proposal of a billing plan for an account

Response

200
application/json

Response to update proposal status request

Represents a Purchase