The Process Subscription object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: draft
{
"id": "process-subscription_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"subscription": "subscription_example"
} /api/accounts/process-subscription/{id} Retrieve a process subscription
Retrieves the details of an existing process subscription. Supply the unique process subscription ID that was returned from a previous request.
Path parameters
The identifier of the process subscription to retrieve.
Returns
Returns the process subscription object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/process-subscription/process-subscription_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "process-subscription_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"subscription": "subscription_example"
} /api/accounts/process-subscription List all process subscriptions
Returns a list of process subscriptions. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of process subscription objects.
curl https://api.overplane.dev/api/accounts/process-subscription \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "process-subscription_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"subscription": "subscription_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/process-subscription Create a process subscription
Creates a new process subscription object.
Body parameters
Default: draft
Returns
Returns the newly created process subscription object if the call succeeded.
curl https://api.overplane.dev/api/accounts/process-subscription \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"posting_date":"2024-01-15"}' {
"id": "process-subscription_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"subscription": "subscription_example"
} /api/accounts/process-subscription/{id} Update a process subscription
Updates the specified process subscription by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the process subscription to update.
Body parameters
Default: draft
Returns
Returns the updated process subscription object.
curl https://api.overplane.dev/api/accounts/process-subscription/process-subscription_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","posting_date":"2024-01-15"}' {
"id": "process-subscription_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"subscription": "subscription_example"
} /api/accounts/process-subscription/{id} Delete a process subscription
Permanently deletes a process subscription. This cannot be undone.
Path parameters
The identifier of the process subscription to delete.
Returns
Returns a confirmation that the process subscription has been deleted.
curl https://api.overplane.dev/api/accounts/process-subscription/process-subscription_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "process-subscription_abc123",
"deleted": true
} /api/accounts/process-subscription/{id}/submit Submit a process subscription
Submits a draft process subscription, transitioning its status from draft to submitted.
Path parameters
The identifier of the process subscription to act on.
Returns
Returns the process subscription object with updated status.
curl https://api.overplane.dev/api/accounts/process-subscription/process-subscription_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "process-subscription_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"subscription": "subscription_example"
} /api/accounts/process-subscription/{id}/cancel Cancel a process subscription
Cancels a submitted process subscription, transitioning its status to cancelled.
Path parameters
The identifier of the process subscription to act on.
Returns
Returns the process subscription object with updated status.
curl https://api.overplane.dev/api/accounts/process-subscription/process-subscription_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "process-subscription_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"posting_date": "2024-01-15",
"subscription": "subscription_example"
}