Endpoint 01
create-billing-account
TMF666 v4 createBillingAccount. Returns the account with a stable instance ID (Idempotency-Key when supplied, otherwise a generated UUID).
- Status
- 201
- Priority
- 0
- Paths
- 3
Bound paths
-
POST
billing.tmfmock.com/billingAccount -
POST
billing.tmfmock.com/tmf666/createBillingAccount -
POST
billing.tmfmock.com/tmf-api/accountManagement/v4/billingAccount
Request conditions
DefaultEvery request matching a bound method and path uses this rule.
Bound response rule
JSON formula{
"body": {
"id": {
"$var": "accountId"
},
"href": {
"$concat": [
{
"$request": "origin"
},
"/billingAccount/",
{
"$var": "accountId"
}
]
},
"name": {
"$request": {
"path": "body.name",
"default": "Mock billing account"
}
},
"@type": "BillingAccount",
"state": {
"$request": {
"path": "body.state",
"default": "Active"
}
},
"accountType": {
"$request": {
"path": "body.accountType",
"default": "Consumer"
}
},
"confirmation": {
"id": {
"$random": "uuid"
},
"status": "ACCEPTED"
},
"relatedParty": [
{
"id": {
"$request": {
"path": "body.relatedParty.0.id",
"default": "mock-customer"
}
},
"name": {
"$request": {
"path": "body.relatedParty.0.name",
"default": "Mock customer"
}
},
"role": {
"$request": {
"path": "body.relatedParty.0.role",
"default": "Customer"
}
},
"@type": "RelatedParty",
"@referredType": "Organization"
}
],
"paymentStatus": {
"$request": {
"path": "body.paymentStatus",
"default": "Current"
}
}
},
"status": 201,
"headers": {
"Location": {
"$concat": [
{
"$request": "origin"
},
"/billingAccount/",
{
"$var": "accountId"
}
]
},
"Content-Type": "application/json; charset=utf-8"
},
"variables": {
"accountId": {
"$request": {
"path": "headers.idempotency-key",
"default": {
"$random": "uuid"
}
}
}
}
}