다음을 통해 공유


Manage billing - Get a collection of invoices

파트너의 청구서를 가져옵니다.

GET https://api.partnercenter.microsoft.com/v1/invoices
GET https://api.partnercenter.microsoft.com/v1/invoices?size={size}&offset={offset}&invoiceType={invoiceType}&filter.operator={filter.operator}

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
filter.operator
query

string

invoiceType
query

string

청구서 유형입니다.

offset
query

integer

int32

페이지 오프셋입니다.

size
query

integer

int32

페이지 크기입니다.

요청 헤더

Name 필수 형식 Description
Authorization True

string

권한 부여 전달자 토큰

ms-correlationid

string

내부적으로 요청을 추적하는 데 사용됩니다. ms-correlationid가 제공되지 않으면 서버는 각 요청에 대해 새 를 생성합니다.

ms-cv

string

내부적으로 요청을 추적하는 데 사용됩니다. ms-cv가 제공되지 않으면 서버는 각 요청에 대해 새 를 생성합니다.

ms-requestid

string

요청의 멱등성에 사용됩니다. ms-requestid가 제공되지 않으면 서버는 각 요청에 대해 새 를 생성합니다.

응답

Name 형식 Description
200 OK

Collections.PagedResourceCollection[Invoice]

요청이 성공했습니다. 응답 본문에는 요청된 청구서 컬렉션이 포함됩니다.

Media Types: "application/json", "text/json"

400 Bad Request

누락되거나 잘못된 입력이 있었습니다. 응답 본문은 오류 세부 정보를 제공합니다.

Media Types: "application/json", "text/json"

401 Unauthorized

요청이 인증되지 않았습니다. 클라이언트는 먼저 파트너 API 서비스를 사용하여 인증해야 합니다.

Media Types: "application/json", "text/json"

403 Forbidden

요청이 인증되었지만 호출자에게 호출할 권한이 없으므로 거부되었습니다.

Media Types: "application/json", "text/json"

404 Not Found

리소스를 찾을 수 없거나 지정된 입력 매개 변수와 함께 사용할 수 없습니다.

Media Types: "application/json", "text/json"

500 Internal Server Error

파트너 API 서비스 또는 해당 종속성 중 하나가 요청을 충족하지 못했습니다. 호출자는 이를 다시 시도할 수 있습니다.

Media Types: "application/json", "text/json"

정의

Name Description
Collections.PagedResourceCollection[Invoice]
Invoice
InvoiceDetail
Link
ResourceAttributes
ResourceLinks
System.Collections.Generic.KeyValuePair[System.String,System.String]
TaxReceipt

Collections.PagedResourceCollection[Invoice]

Name 형식 Description
attributes

ResourceAttributes

continuationToken

string

items

Invoice[]

links

ResourceLinks

totalCount

integer

Invoice

Name 형식 Description
amendments

Invoice[]

amendsOf

string

attributes

ResourceAttributes

billingPeriodEndDate

string

billingPeriodStartDate

string

currencyCode

string

currencySymbol

string

documentType enum:
  • adjustmentNote
  • invoice
  • none
  • reconciliation
  • voidNote
id

string

invoiceDate

string

invoiceDetails

InvoiceDetail[]

invoiceType

string

links

ResourceLinks

paidAmount

number

pdfDownloadLink

string

programName

string

state

string

taxReceipts

TaxReceipt[]

totalCharges

number

InvoiceDetail

Name 형식 Description
attributes

ResourceAttributes

billingProvider enum:
  • all
  • azure
  • marketplace
  • none
  • office
  • oneTime
invoiceLineItemType enum:
  • billingLineItems
  • none
  • usageLineItems
links

ResourceLinks

Name 형식 Description
headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

ResourceAttributes

Name 형식 Description
etag

string

objectType

string

Name 형식 Description
next

Link

previous

Link

self

Link

System.Collections.Generic.KeyValuePair[System.String,System.String]

Name 형식 Description
key

string

value

string

TaxReceipt

Name 형식 Description
createdDate

string

id

string

receiptType

string

taxReceiptPdfDownloadLink

string