---
updatedAt: 2026-04-30T10:24:55.000Z
agentTools:
  projectIndex: https://booking-api-docs.guesty.com/llms.txt
---

# Get listing's payment provider

Return a payment provider

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/api/listings/{listingId}/payment-provider": {
      "get": {
        "operationId": "getPaymentProviderByListingId",
        "summary": "Get listing's payment provider",
        "description": "Return a payment provider",
        "parameters": [
          {
            "name": "listingId",
            "required": true,
            "in": "path",
            "description": "ID of listing to return",
            "schema": {
              "example": "5bf544a600a9b000389f81d8",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "_id": {
                      "type": "string"
                    },
                    "providerType": {
                      "type": "string"
                    },
                    "providerAccountId": {
                      "type": "string"
                    },
                    "serviceProviderAccountId": {
                      "type": "integer"
                    },
                    "serviceProviderSubAccountId": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    },
                    "paymentProcessorName": {
                      "type": "string"
                    },
                    "accountName": {
                      "type": "string"
                    },
                    "paymentProcessorId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Not authorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Listing payment provider not found"
          },
          "429": {
            "description": "Too many requests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string"
                            },
                            "moreDetails": {
                              "type": "object"
                            }
                          },
                          "required": [
                            "requestId"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "data"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Listings"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "Booking Engine API",
    "description": "Booking Engine API",
    "version": "1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://booking.guesty.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "authorization"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```