Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "post": {
- "description": "<p>Create a refund.</p>",
- "operationId": "PostRefunds",
- "requestBody": {
- "content": {
- "application/x-www-form-urlencoded": {
- "encoding": {
- "expand": {
- "explode": true,
- "style": "deepObject"
- },
- "metadata": {
- "explode": true,
- "style": "deepObject"
- }
- },
- "schema": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "type": "integer"
- },
- "charge": {
- "maxLength": 5000,
- "type": "string"
- },
- "expand": {
- "description": "Specifies which fields in the response should be expanded.",
- "items": {
- "maxLength": 5000,
- "type": "string"
- },
- "type": "array"
- },
- "metadata": {
- "anyOf": [
- {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "enum": [
- ""
- ],
- "type": "string"
- }
- ],
- "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."
- },
- "payment_intent": {
- "maxLength": 5000,
- "type": "string"
- },
- "reason": {
- "enum": [
- "duplicate",
- "fraudulent",
- "requested_by_customer"
- ],
- "maxLength": 5000,
- "type": "string"
- },
- "refund_application_fee": {
- "type": "boolean"
- },
- "reverse_transfer": {
- "type": "boolean"
- }
- },
- "type": "object"
- }
- }
- },
- "required": false
- },
- "responses": {
- "200": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/refund"
- }
- }
- },
- "description": "Successful response."
- },
- "default": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/error"
- }
- }
- },
- "description": "Error response."
- }
- }
- }
- },
Add Comment
Please, Sign In to add comment