@@ -5078,6 +5078,88 @@ paths:
5078
5078
\ this may include the `transactionId` of any transaction in an Apple App\
5079
5079
\ Store subscription, or any order ID from a Google Play Store subscription.\n \
5080
5080
\ This endpoint requires the following permission(s): <code>customer_information:subscriptions:read</code>."
5081
+ /projects/{project_id}/purchases :
5082
+ get :
5083
+ summary : Search one-time purchases by store purchase identifier
5084
+ operationId : search-purchases
5085
+ x-revenuecat-rate-limiting-domain : customer_information
5086
+ x-scopes :
5087
+ - customer_information:purchases:read
5088
+ x-release-status : beta
5089
+ tags :
5090
+ - Purchase
5091
+ parameters :
5092
+ - name : project_id
5093
+ description : ID of the project
5094
+ required : true
5095
+ in : path
5096
+ schema :
5097
+ type : string
5098
+ maxLength : 255
5099
+ example : proj1ab2c3d4
5100
+ - name : store_purchase_identifier
5101
+ description : Store ID associated with the one-time purchase.
5102
+ required : true
5103
+ in : query
5104
+ schema :
5105
+ type : string
5106
+ nullable : false
5107
+ minLength : 1
5108
+ maxLength : 255
5109
+ examples :
5110
+ amazon :
5111
+ value : 9aJscueFTxLPZXXo-AlBTkI0OnFXR2qiH14C1aqWnOT=:3:11
5112
+ summary : ' Amazon Appstore '
5113
+ app_store :
5114
+ value : ' 100001234567890'
5115
+ summary : Apple App Store
5116
+ paddle :
5117
+ value : txn_01jss4bz50g1z5yw121npeb3ag
5118
+ summary : Paddle
5119
+ play_store :
5120
+ value : GPA.1234-5678-9012-34567
5121
+ summary : Google Play Store
5122
+ rc_billing :
5123
+ value : txRcb553a54d4738816a63f1a05cfcb1723e3
5124
+ summary : RevenueCat Web Billing
5125
+ roku :
5126
+ value : 4ab8df12-3003-11f0-9646-8ac68bcdcaed
5127
+ summary : Roku
5128
+ stripe :
5129
+ value : si_Rww1psqupbKxmt
5130
+ summary : Stripe
5131
+ responses :
5132
+ ' 200 ' :
5133
+ description : Success
5134
+ content :
5135
+ application/json :
5136
+ schema :
5137
+ $ref : ' #/components/schemas/ListPurchases'
5138
+ headers :
5139
+ RevenueCat-Rate-Limit-Current-Usage :
5140
+ $ref : ' #/components/headers/RateLimitCurrentUsage'
5141
+ RevenueCat-Rate-Limit-Current-Limit :
5142
+ $ref : ' #/components/headers/RateLimitCurrentLimit'
5143
+ ' 400 ' :
5144
+ $ref : ' #/components/responses/BadRequest'
5145
+ ' 401 ' :
5146
+ $ref : ' #/components/responses/Unauthorized'
5147
+ ' 403 ' :
5148
+ $ref : ' #/components/responses/Forbidden'
5149
+ ' 404 ' :
5150
+ $ref : ' #/components/responses/NotFound'
5151
+ ' 423 ' :
5152
+ $ref : ' #/components/responses/Locked'
5153
+ ' 429 ' :
5154
+ $ref : ' #/components/responses/RateLimited'
5155
+ ' 500 ' :
5156
+ $ref : ' #/components/responses/InternalError'
5157
+ ' 503 ' :
5158
+ $ref : ' #/components/responses/InternalError'
5159
+ description : " Search for a one-time purchases by any of its associated `store_purchase_identifier`\
5160
+ \ values.\n\n For example, this may include the `transactionId` of any transaction\
5161
+ \ in an Apple App Store purchase, or any order ID from a Google Play Store\
5162
+ \ purchase.\n This endpoint requires the following permission(s): <code>customer_information:purchases:read</code>."
5081
5163
components :
5082
5164
securitySchemes :
5083
5165
BearerAuth :
0 commit comments