---
title: "Create Stripe charge"
method: POST
path: "/workorders/{workorderId}/addstripecharge"
tags: ["WorkOrders"]
---

# Create Stripe charge

`POST /workorders/{workorderId}/addstripecharge`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/workorders/{workorderId}/addstripecharge`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/workorders/:workorderId/addstripecharge/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates charge through Stripe with provider stripe account as destination. Also increases NTE by charge amount.

## Path parameters

- `workorderId` integer, required

## Request body

- ServiceChannelServicesMessagingWorkordersAddStripeChargeRequest: AddStripeCharge request
  - `TokenId` string, required: Id of the token returned by stripe api {!:https://stripe.com/docs/}
  - `Amount` number, double, required: Amount to charge
  - `Currency` string, required: Currency

## Response `200`

Indicates that the request succeeded.

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters.<br>Error codes:<br>502 - WorkOrder not found;<br>503 - Request data is empty;WO don't have provider;WorkOrder does not belong to subscriber;Amount is not positive;<br>904 - WorkOrder is completed;<br>101 - Provider don't have Stripe account;<br>501 - Stripe API error
- `401`: Indicates that the requested resource requires authentication.<br>Error codes:<br/> 504 - API call rejected by security permissions;
- `500`: Error while processing request.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
