---
agentTools:
  projectIndex: https://zafepay.readme.io/llms.txt
---

# Create single payment buyer

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Onlypays",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.staging.zafepay.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/integration/single_payment_buyers": {
      "post": {
        "summary": "Create single payment buyer",
        "description": "",
        "operationId": "create-single-payment-buyer",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "Header to access api endpoints (Check the authentication section).",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "single_payment_buyer": {
                    "properties": {
                      "buyer_id": {
                        "type": "string",
                        "description": "Id of the Buyer to be inscribed."
                      },
                      "single_payment_id": {
                        "type": "string",
                        "description": "The id of the Single Payment for the Single Payment Buyer."
                      },
                      "external_id": {
                        "type": "string",
                        "description": "An external id to identify the Subscription Buyer."
                      },
                      "extra_fields": {
                        "type": "string",
                        "description": "The extra fields answers for the Single Payment extra fields.",
                        "format": "json"
                      }
                    },
                    "required": [
                      "buyer_id",
                      "single_payment_id"
                    ],
                    "type": "object",
                    "description": "Envelops the message content."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"id\": \"77f11da2-1ddc-4247-bc3b-0881723da677\",\n        \"buyer\": {\n            \"id\": \"0d27afe0-7a02-41e1-9494-a955c21c0a3a\",\n            \"created_at\": \"2023-10-10T12:35:13\",\n            \"email\": \"jhonsmith@gmail.com\",\n            \"external_id\": \"customer003\",\n            \"name\": \"Jhon Smith\",\n            \"updated_at\": \"2023-10-10T12:40:11\"\n        },\n        \"created_at\": \"2023-10-11T18:29:42\",\n        \"external_id\": \"sp001\",\n        \"extra_fields\": {\n            \"Age\": \"26\"\n        },\n        \"installment\": {\n            \"id\": \"2839e9db-ebfa-4819-a42c-abef5b669c96\",\n            \"amount\": 79970,\n            \"created_at\": \"2023-10-11T18:29:42\",\n            \"currency\": \"CLP\",\n            \"due_date\": null,\n            \"external_id\": null,\n            \"payment_date\": null,\n            \"status\": \"pending\",\n            \"updated_at\": \"2023-10-11T18:29:42\"\n        },\n        \"single_payment_id\": \"5d58d855-09ee-4087-bba3-3a000d36c1ea\",\n        \"status\": \"active\",\n        \"updated_at\": \"2023-10-11T18:29:42\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "77f11da2-1ddc-4247-bc3b-0881723da677"
                        },
                        "buyer": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "example": "0d27afe0-7a02-41e1-9494-a955c21c0a3a"
                            },
                            "created_at": {
                              "type": "string",
                              "example": "2023-10-10T12:35:13"
                            },
                            "email": {
                              "type": "string",
                              "example": "jhonsmith@gmail.com"
                            },
                            "external_id": {
                              "type": "string",
                              "example": "customer003"
                            },
                            "name": {
                              "type": "string",
                              "example": "Jhon Smith"
                            },
                            "updated_at": {
                              "type": "string",
                              "example": "2023-10-10T12:40:11"
                            }
                          }
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2023-10-11T18:29:42"
                        },
                        "external_id": {
                          "type": "string",
                          "example": "sp001"
                        },
                        "extra_fields": {
                          "type": "object",
                          "properties": {
                            "Age": {
                              "type": "string",
                              "example": "26"
                            }
                          }
                        },
                        "installment": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "example": "2839e9db-ebfa-4819-a42c-abef5b669c96"
                            },
                            "amount": {
                              "type": "integer",
                              "example": 79970,
                              "default": 0
                            },
                            "created_at": {
                              "type": "string",
                              "example": "2023-10-11T18:29:42"
                            },
                            "currency": {
                              "type": "string",
                              "example": "CLP"
                            },
                            "due_date": {},
                            "external_id": {},
                            "payment_date": {},
                            "status": {
                              "type": "string",
                              "example": "pending"
                            },
                            "updated_at": {
                              "type": "string",
                              "example": "2023-10-11T18:29:42"
                            }
                          }
                        },
                        "single_payment_id": {
                          "type": "string",
                          "example": "5d58d855-09ee-4087-bba3-3a000d36c1ea"
                        },
                        "status": {
                          "type": "string",
                          "example": "active"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2023-10-11T18:29:42"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "64c97d0ad3b2f2002d150a5d:6526e02a0c9f23001380e49f"
}
```