Skip to main content
POST
/
billspree
/
services
/
update-service
Update Pricing Template
curl --request POST \
  --url https://{workspace}.spreesuite.com/billspree/services/update-service \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "method": "Update",
  "action": "Update Package",
  "apiVersion": "v2",
  "service": {
    "code": "DEMO-001",
    "name": "Demo Plan Updated",
    "serviceType": "Sale",
    "chargingType": "Postpaid",
    "postType": "Post Subscription",
    "billingCycle": 4,
    "dueDateOffset": 15,
    "description": "Updated description",
    "values": [],
    "components": [],
    "connectionInputs": [],
    "meteredInputs": [],
    "unmeteredInputs": [],
    "bankAccounts": [],
    "batches": [],
    "invoiceTemplate": {
      "templateID": null
    },
    "emailTemplate": {
      "templateID": null
    }
  }
}
'
{
  "success": true,
  "statusCode": 200,
  "message": "Request Succeeded.",
  "error": null,
  "data": {}
}

Authorizations

Authorization
string
header
required

Auth token returned from the login endpoint. Send as: Authorization: <token> (no Bearer prefix)

Body

application/json
method
string
required

Always "Update"

Example:

"Update"

action
string
required

Always "Update Package"

Example:

"Update Package"

apiVersion
string
required

Always "v2"

Example:

"v2"

service
object
required

Response

200 - application/json

Pricing template updated successfully

success
boolean
statusCode
integer
message
string
error
unknown
data
object